import axiosServer from '@/utils/requst'

 export const RequestRegister = (username: string,password: string,nickname:string,age:Number,fullname:string,sex:string) => {
    return axiosServer({
        method: 'post',
        url: '/api/users/UserRegister',
        data: {
            username,
            password,
            nickname,
            age,
            fullname,
            sex,
        }
    })
}


export const RequestLogin = (username: string,password: string) => {
    return axiosServer({
        method: 'post',
        url: '/api/users/UserLogin',
        data: {
            username,
            password
        }
    })
}

// 预约
export const yY = (id:string) => {
    // return axiosServer({
    //     method: 'get',
    //     url: '/api/users/cs',
    //     // data: {
    //     //     id
    //     // }
    // })
    console.log(id);
    
}